xen: lock target domain in do_domctl common code
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 18 Dec 2012 18:16:13 +0000 (18:16 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 18 Dec 2012 18:16:13 +0000 (18:16 +0000)
commit8ea0a35ad7034a9499b2c202acec28ae4477c05e
treeccd16cec6811a87f5979a29f6a5feb58aaf143c0
parent8425d86ae9d7380f0e6726a7d47ef66589c53617
xen: lock target domain in do_domctl common code

Because almost all domctls need to lock the target domain, do this by
default instead of repeating it in each domctl. This is not currently
extended to the arch-specific domctls, but RCU locks are safe to take
recursively so this only causes duplicate but correct locking.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/domctl.c